const str = 'dai-jin-s'
console.log(str.replace(/-[a-z]/g, (match,index) => {
    return match[1].toUpperCase()
}))
